package yf.mall.dao;

import org.apache.ibatis.annotations.Param;
import yf.mall.entity.AppFavoriteEntity;
import yf.mall.vo.AppFavoriteVo;
import org.apache.ibatis.annotations.Mapper;
import com.yf.dao.BaseDao;
import java.util.List;
/**
 * 收藏表Dao
 *
 *
 *
 * @date Fri Jul 28 07:58:50 CST 2023
 */
@Mapper
public interface AppFavoriteDao extends BaseDao<AppFavoriteEntity> {

    List<AppFavoriteVo> findVo(AppFavoriteVo vo);

    AppFavoriteVo getVo(Long id);

    /**
     * 查询指定用户对指定资源的收藏状态
     * @param userId
     * @param type
     * @param refIds
     * @return
     */
    List<AppFavoriteEntity> findFavoriteByRefId(@Param("userId") Long userId, @Param("type") Integer type, @Param("refIds") List<Long> refIds);
}
